{% extends 'window.twig' %}
{% block body %}
    <div class="admin-main-container">
        <div class="data-view">
            <div class="tools auth-botton with-padding btn-control">
                <span class="action-btn hidden">
                    <a id="add-group" class="btn btn-default" href="creategroup.html">新 增</a>
                    <a url="resumeGroup.html" class="btn btn-default ajax-post" target-form="ids">启 用</a>
                    <a url="forbidGroup.html" class="btn btn-default ajax-post" target-form="ids">禁 用</a>
                    <a url="deleteGroup.html" class="btn btn-default ajax-post confirm" target-form="ids">删 除</a>

                &nbsp; &nbsp; &nbsp; &nbsp;
                </span>
                <a href="auth.rule.add" onclick="parent.osw.open(this.href);return false;" class="btn btn-primary set-user-group">新增权限</a>
            </div>
            <!-- 数据列表 -->
            <div class="data-table with-padding">
                <table class="table table-bordered table-striped ">
                    <thead>
                    <tr>
                        <th class="row-selected row-selected"><input class="check-all" type="checkbox"></th>
                        <th class="">用户组</th>
                        <th class="">描述</th>

                        <th class="">授权</th>
                        <th class="">状态</th>
                        <th class="">操作</th>
                    </tr>
                    </thead>
                    <tbody>
                        {% for g in groupList %}
                        <tr>
                            <td><input class="ids" type="checkbox" name="id[]" value="1"></td>
                            <td>{{ g.title }}</td>
                            <td><span>{{ g.remark }}</span></td>


                            <td>
                                <a href="auth.group?gid={{ g.id }}">授权</a>
                            </td>
                            <td>正常</td>
                            <td>
                                <a href="changestatus/method/forbidGroup/id/1.html"
                                   class="ajax-get">禁用</a>
                                <!--修改内容开始-->
                                <a href="changestatus/method/deleteGroup/id/1.html"
                                   class="confirm ajax-get">删除</a>
                                <!--修改内容结束-->
                            </td>
                        </tr>
                        {% endfor %}
                    </tbody>
                </table>

            </div>
        </div>
        {% include 'block/page.twig' %}
    </div>
{% endblock %}